<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('planpagoagua/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          <?php echo $form->renderHiddenFields(false) ?>
          &nbsp;<a href="<?php echo url_for('planpagoagua/index') ?>">Back to list</a>
          <?php if (!$form->getObject()->isNew()): ?>
            &nbsp;<?php echo link_to('Delete', 'planpagoagua/delete?id='.$form->getObject()->getId(), array('method' => 'delete', 'confirm' => 'Are you sure?')) ?>
          <?php endif; ?>
          <input type="submit" value="Save" />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><?php echo $form['fecha']->renderLabel() ?></th>
        <td>
          <?php echo $form['fecha']->renderError() ?>
          <?php echo $form['fecha'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['totalinteres']->renderLabel() ?></th>
        <td>
          <?php echo $form['totalinteres']->renderError() ?>
          <?php echo $form['totalinteres'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['totalrecargo']->renderLabel() ?></th>
        <td>
          <?php echo $form['totalrecargo']->renderError() ?>
          <?php echo $form['totalrecargo'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['valor_cuota']->renderLabel() ?></th>
        <td>
          <?php echo $form['valor_cuota']->renderError() ?>
          <?php echo $form['valor_cuota'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['periodo_desde']->renderLabel() ?></th>
        <td>
          <?php echo $form['periodo_desde']->renderError() ?>
          <?php echo $form['periodo_desde'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['cantidad_cuotas']->renderLabel() ?></th>
        <td>
          <?php echo $form['cantidad_cuotas']->renderError() ?>
          <?php echo $form['cantidad_cuotas'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['estado']->renderLabel() ?></th>
        <td>
          <?php echo $form['estado']->renderError() ?>
          <?php echo $form['estado'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['obs']->renderLabel() ?></th>
        <td>
          <?php echo $form['obs']->renderError() ?>
          <?php echo $form['obs'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['unidad_funcional_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['unidad_funcional_id']->renderError() ?>
          <?php echo $form['unidad_funcional_id'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>
